<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Touch
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: Standard.php 2011-04-26 11:18:13 mirlan $
 * @author     Mirlan
 */

/**
 * @category   Application_Extensions
 * @package    Touch
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

abstract class Touch_Controller_Action_Standard extends Core_Controller_Action_Standard {
	public function is_iPhoneUploading() {
		$this->view->chash = $this->_getParam ( 'chash' );
		
		return ($this->_helper->contextSwitch->getCurrentContext () == 'json' && preg_match ( '/imageuploader/', Engine_Api::_ ()->touch ()->getUserAgent () ) && $this->_getParam ( 'owner_id', false ));
	}
}